<!DOCTYPE html><!--使用a标签，使用超链接个发送请求，发送的是GET请求-->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车页面</title>
</head>
    <body>
        <h1>我的购物车</h1>
        <table>
            <thead>
            <tr>
                <th>商品序号</th>
                <th>商品名称</th>
                <th>商品图片</th>
                <th>商品价格</th>
                <th>购买数量</th>
                <th>商品总价</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
                {% for good in goods %}
                <tr>
                    <th>{{forloop.counter}}</th>
                    <th>{{good.name}}</th>
                    <th>
                        <img src={{good.imgsrc}} width="50" height="50">
                    </th>
                    <th>{{good.price}}</th>
                    <th>{{good.buy_count}}</th>
                    <th>{{good.allprice}}</th>
                    <th>删除购物车商品</th>
                    <!--<th>{% widthratio good.price 1 good.buy_count%}</th>-->
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </body>
</html>